package com.fs.uc.core.behavior;

import com.fs.uc.base.domain.Person;

/**
 * @author 崔超
 * 2021/12/31
 */
public interface PersonBehavior {
    Person createByUserSelf(String openId, String phone,String name);

    Person createByOrgAdmin(String phone,String name);

    Person switchCurrentOrg(Long personId, Long orgId);

    void joinOrg(Long personId, Long orgId);

    void leaveOrg(Long personId, Long orgId);

    PersonIdentity getIdentity(Long personId);

    enum PersonIdentity {
        ParkAdmin,//园区管理员
        CustomUser,//自定义后台用户(园区运维）
        Employee, //企业员工
        Boss,//企业管理员
        NormalPerson //普通注册用户,没有所属组织的人
    }
}
